package com.yoda.mall.api;

import com.yoda.mall.model.entity.ums.Resource;
import com.yoda.mall.model.vo.PageResult;

import java.util.List;

public interface ResourceApi {
    List<Resource> listAll();


    PageResult<Resource> pageList(Integer categoryId, String nameKeyword, String urlKeyword, Integer pageNum, Integer pageSize);

    void create(Resource resource);

    void deleteById(Integer id);

    void updateById(Resource resource);

    Resource findById(Integer id);

    List<Resource> findByCategoryId(Integer id);
}
